package com.yusys.jin.blog;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class MailTestCase {
    @Autowired
    JavaMailSender sender;

    @Test
    public void text() {
        /*
         * SimpleMailMessage message = new SimpleMailMessage();
         * message.setFrom("110680320@qq.com"); message.setSubject("hello world");
         * message.setText("测试邮件"); message.setTo("919811410@qq.com");
         * sender.send(message);
         */
    }

}
